<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class DeptTableSeeder extends Seeder
{

    /**
     * Auto generated seed file
     *
     * @return void
     */
    public function run()
    {


        \DB::table('dept')->delete();

        \DB::table('dept')->insert(array (
            0 =>
            array (
                'id' => 1,
                'name' => '信息技术部门',
                'code' => 'it-department',
                'parentId' => 0,
                'sort' => 0,
                'status' => 1,
                'createTime' => '2025-11-01 04:36:02',
                'updateTime' => '2025-11-01 04:36:02',
            ),
            1 =>
            array (
                'id' => 2,
                'name' => '前端开发部门',
                'code' => 'front-end',
                'parentId' => 1,
                'sort' => 0,
                'status' => 1,
                'createTime' => '2025-11-01 04:36:31',
                'updateTime' => '2025-11-01 04:36:31',
            ),
            2 =>
            array (
                'id' => 3,
                'name' => '后端开发部门',
                'code' => 'back-end',
                'parentId' => 1,
                'sort' => 0,
                'status' => 1,
                'createTime' => '2025-11-01 04:36:46',
                'updateTime' => '2025-11-01 04:36:46',
            ),
            3 =>
            array (
                'id' => 4,
                'name' => '销售部门',
                'code' => 'market',
                'parentId' => 0,
                'sort' => 0,
                'status' => 1,
                'createTime' => '2025-11-01 04:37:04',
                'updateTime' => '2025-11-01 04:37:04',
            ),
            4 =>
            array (
                'id' => 5,
                'name' => '销售部门-1',
                'code' => 'market-one',
                'parentId' => 4,
                'sort' => 0,
                'status' => 1,
                'createTime' => '2025-11-01 04:37:32',
                'updateTime' => '2025-11-01 04:37:32',
            ),
            5 =>
            array (
                'id' => 6,
                'name' => '销售部门-2',
                'code' => 'market-two',
                'parentId' => 4,
                'sort' => 0,
                'status' => 1,
                'createTime' => '2025-11-01 04:37:48',
                'updateTime' => '2025-11-01 04:37:48',
            ),
        ));


    }
}
